package pcb.views.library
{
	import flash.display.MovieClip;	
	import pcb.views.uievents.LabelEvent;
	//import skoool.lo.events.LabelEvent;
	
	/**
	 * @desc 	temporary implementation of the wrapper - for moment it just extends MC
	 * 
	 * @author 	dhomanx
	 */
	public class LabelWrapper extends MovieClip	
	{
		private var strID:String;
		// to be provided for late binding
		//public var cmp:AbstractComponent;
		
		
		public function LabelWrapper() 
		{
			//trace("created " + this);			
		}
		
		public function get id():String { return strID; }
		
		// set this ID and then dispatch the event letting us know this is ready to be accessed
		public function set id(value:String):void 
		{
			//Debugger.traceOut("setting the ID for " + this.name, Debugger.DEV);
			strID = value;
			dispatchEvent(new LabelEvent(LabelEvent.ADDED_TO_STAGE, this));
		}
		
		
		
	}
	
}